home *** CD-ROM | disk | FTP | other *** search
- class DebrisManager extends MovieClip
- {
- var color;
- var number;
- static var BASE_TIME = 150;
- function DebrisManager(color, number)
- {
- super();
- this.color = color;
- this.number = number;
- }
- function createDebrisField(x, y)
- {
- if(_root.effects >= 0)
- {
- var _loc3_ = 0;
- while(_loc3_ < this.number * _root.effects + 1)
- {
- new Debris(x,y,this.color,Math.random() * 360,CustomMath.randomRange(8,15),DebrisManager.BASE_TIME * _root.effects);
- _loc3_ = _loc3_ + 1;
- }
- }
- }
- }
-